package com.company.project.entity.inventoryLocation;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.LastModifiedDate;

/**
 * 库位
 */
@Data
public class InventoryLocation implements Serializable {

  @TableId("id")
  private String id;

  /**
   * 所属仓库
   */
  @TableField("warehouse_id")
  private String warehouseId;

  @TableField(exist = false)
  private  String warehouseName;

  /**
   * 库位号
   */
  private String inventoryLocationNo;
  /**
   * 区域
   */
  private String region;

  /**
   * 状态
   */
  private boolean enabled;

  /**
   * 所属中心
   */
  private String owner;

  /**
   * 操作者
   */
  private String createdBy;

  @CreatedDate
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  private Date createdDate;

  @LastModifiedDate
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  private Date lastModifiedDate;

}
